@extends('admin.layouts.base')

@section('title','后台管理系统')

@section('pageHeader','后台管理系统')

@section('pageDesc','DashBoard')

@section('content')
    <link rel="stylesheet" type="text/css" href="/plugins/upload-form/css/jquery.filer.css">
    <div class="main animsition">
        <div class="container-fluid">
            <div class="row">
                <div class="col-md-8 col-md-offset-2">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h3 class="panel-title">添加首页图片</h3>
                        </div>
                        <div class="panel-body">
                            @include('admin.partials.errors')
                            @include('admin.partials.success')
                            <form class="form-horizontal" role="form" method="POST" enctype="multipart/form-data" action="/admin/homeimage/update/{{$id}}">
                                <input type="hidden" name="_token" value="{{ csrf_token() }}">
                                <input type="hidden" name="cove_image"/>
                                <div class="form-group">
                                    <label for="tag" class="col-md-3 control-label">图片1(建议尺寸500*550)</label>
                                    <div class="col-md-6">
                                        <input type="file" name="image1" id="demo-fileInput-11" data-bool="@if(empty($image1)) 0 @else 1 @endif" data-name="{{basename($image1)}}" data-file="{{asset($image1)}}" multiple="multiple">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="tag" class="col-md-3 control-label">图片2(建议尺寸155*170)</label>
                                    <div class="col-md-6">
                                        <input type="file" name="image2" id="demo-fileInput-12" data-bool="@if(empty($image2)) 0 @else 1 @endif" data-name="{{basename($image2)}}" data-file="{{asset($image2)}}" multiple="multiple">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="tag" class="col-md-3 control-label">图片3(建议尺寸155*170)</label>
                                    <div class="col-md-6">
                                        <input type="file" name="image3" id="demo-fileInput-13" data-bool="@if(empty($image3)) 0 @else 1 @endif" data-name="{{basename($image3)}}" data-file="{{asset($image3)}}" multiple="multiple">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="tag" class="col-md-3 control-label">图片4(建议尺寸155*170)</label>
                                    <div class="col-md-6">
                                        <input type="file" name="image4" id="demo-fileInput-14" data-bool="@if(empty($image4)) 0 @else 1 @endif" data-name="{{basename($image4)}}" data-file="{{asset($image4)}}" multiple="multiple">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="tag" class="col-md-3 control-label">图片5(建议尺寸325*360)</label>
                                    <div class="col-md-6">
                                        <input type="file" name="image5" id="demo-fileInput-15" data-bool="@if(empty($image5)) 0 @else 1 @endif" data-name="{{basename($image5)}}" data-file="{{asset($image5)}}" multiple="multiple">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="tag" class="col-md-3 control-label">图片6(建议尺寸325*170)</label>
                                    <div class="col-md-6">
                                        <input type="file" name="image5" id="demo-fileInput-16" data-bool="@if(empty($image6)) 0 @else 1 @endif" data-name="{{basename($image6)}}" data-file="{{asset($image6)}}" multiple="multiple">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-md-7 col-md-offset-3">
                                        <button type="submit" class="btn btn-primary btn-md">
                                            <i class="fa fa-plus-circle"></i>
                                            确认
                                        </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@stop